
import $ from 'jquery';
import Luckdraw from '../view/Luckdraw/Luckdarw'
import { drawlist } from '../utils/config'

;( ($) => {

    const $app = $('#root'),
            $Luckdraw = Luckdraw();

    function init() {
        render();
        bindEvent();
    }

    function bindEvent() {
        $Luckdraw.bindEvent();
    }

    function render() {
        $app.append( $Luckdraw.tpl( drawlist ) );
    }

    init();

})($)